<?php
$this->_var['dpagejs'][] = $this->_var['TMPL_REAL']."/js/switch_city.js";
$this->_var['dcpagejs'][] = $this->_var['TMPL_REAL']."/js/switch_city.js";
$this->_var['dpagejs'][] = APP_ROOT_PATH."/system/region.js";
$this->_var['dcpagejs'][] = APP_ROOT_PATH."/system/region.js";
$this->_var['dpagejs'][] = $this->_var['TMPL_REAL']."/js/add_consignee.js";
$this->_var['dcpagejs'][] = $this->_var['TMPL_REAL']."/js/add_consignee.js";

?>
<script type="text/javascript" src="<?php 
$k = array (
  'name' => 'parse_script',
  'v' => $this->_var['dpagejs'],
  'c' => $this->_var['dcpagejs'],
);
echo $k['name']($k['v'],$k['c']);
?>"></script>

<div class="full" style="padding-right:20px;">
<form class="ajax_form" action="<?php
echo parse_url_tag("u:settings#save_consignee|"."".""); 
?>">
									
				<div class="form_row">
					<div class="blank15"></div>
					<label class="title w100">收货人姓名:</label>
					<input type="text" class="textbox" value="<?php echo $this->_var['consignee_info']['consignee']; ?>" name="consignee" />
					<div class="blank15"></div>
				</div>
				<div class="form_row">
					<label class="title w100">地区:</label>
					
					<div class="select_box">
					<select name="province">				
					<option value="" rel="0">请选择省份</option>			
					<?php $_from = $this->_var['region_lv2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
    foreach ($_from AS $this->_var['region']):
?>
						<option value="<?php echo $this->_var['region']['name']; ?>" rel="<?php echo $this->_var['region']['id']; ?>" <?php if ($this->_var['region']['selected']): ?>selected="selected"<?php endif; ?>><?php echo $this->_var['region']['name']; ?></option>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</select>
					
					<select name="city">				
					<option value="" rel="0">请选择城市</option>
					<?php $_from = $this->_var['region_lv3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
    foreach ($_from AS $this->_var['region']):
?>
						<option value="<?php echo $this->_var['region']['name']; ?>" rel="<?php echo $this->_var['region']['id']; ?>" <?php if ($this->_var['region']['selected']): ?>selected="selected"<?php endif; ?>><?php echo $this->_var['region']['name']; ?></option>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</select>
					</div>
					
					<div class="blank15"></div>
				</div>
				
				<div class="form_row">
					<label class="title w100">详细地址:</label>
					<textarea name="address" class="textarea"><?php echo $this->_var['consignee_info']['address']; ?></textarea>
					<div class="blank15"></div>
				</div>
				
				<div class="form_row">
					<div class="blank15"></div>
					<label class="title w100">邮编:</label>
					<input type="text"  name="zip" class="textbox" value="<?php echo $this->_var['consignee_info']['zip']; ?>" />
					<div class="blank15"></div>
				</div>
				<div class="form_row">
					<div class="blank15"></div>
					<label class="title w100">手机:</label>
					<input type="text"  name="mobile" class="textbox" value="<?php echo $this->_var['consignee_info']['mobile']; ?>" />
					<div class="blank15"></div>
				</div>
				
				
				<div class="submit_btn_row">
					<div class="ui-button green" rel="green">
						<div>
							<span>保存</span>
						</div>
					</div>
					<input type="hidden" value="1" name="ajax" />
					<input type="hidden" value="<?php echo $this->_var['consignee_info']['id']; ?>" name="id" />
					<div class="blank15"></div>
				</div>
				
			</form>
			</div>